package day01;

import java.io.File;
import java.io.IOException;

public class FileDemo01 {
    public static void main(String[] args) throws IOException {
//        File file = new File("d:\\1\\2\\3");
//        if (!file.exists()) {
//            file.mkdirs();
//        }
        File file = new File("d:"+File.separator+"f1.txt");
        if (!file.exists()) {
            file.createNewFile();
        } else {
            file.delete();
        }
    }
}
